package cn.com.aiouyi.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name="t_file_class")
public class FileClass extends BaseEntity<Long>{

	/** 文件分类名称*/
	@NotEmpty
	private String name;
	
	@OneToMany(mappedBy="fileClass")
	private List<File> files = new ArrayList<File>();

}
